<?
include('../core/core.php');

Core::Init('Shop');

/**
 * Autoloader klas
 *
 * @param unknown_type $className
 */
function __autoload($className) {


	Core::LoadClass($className);

}

//$logger = LoggerManager::getLogger(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : __FILE__);
Core::LoadSmarty();

$scripts = array();

Registry::Set('javascript', $scripts);

Router::$controllerMethodSeek = false;
Router::$popParamUnpaired = false;
Router::$reverseRoute = true;

$front = new FrontController();

$front->SetTitleDelimiter(' - ');
$front->AddTitle('Tennizoom');
$front->AddTitle('Administracja Sklepu');

$front->FlipTitle();

$front->Dispatch();

Core::Garbage();
